package org.comiee.airwalker.block;

import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.GlassBlock;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

import static org.comiee.airwalker.AirWalker.MODID;

/* 方块注册类 */
public class ModBlocks {
    public static final DeferredRegister<Block> BLOCKS =
            DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);

    // 注册一个方块实例
    public static final RegistryObject<Block> AIR_GLASS_BLOCK =
            BLOCKS.register("air_glass", ()->new GlassBlock(BlockBehaviour.Properties.copy(Blocks.GLASS)));
}
